package com.hcss.common.util;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class ScheduleUtil {
	
	/** 创建一个定长线程池，可控制线程最大并发数，超出的线程会在队列中等待。 **/
    private static final ExecutorService executors = Executors.newFixedThreadPool(10);

    private static final ExecutorService receiveExecutors = Executors.newFixedThreadPool(10);

    // 自动完结工单处理线程池
    private static final ExecutorService autoFinishExecutors = Executors.newFixedThreadPool(10);

    private static final ExecutorService noticeWorkerExecutors = Executors.newFixedThreadPool(10);

    public static ExecutorService getExecutors(){
    	return executors;
    }

    public static ExecutorService getReceiveExecutors() {
        return receiveExecutors;
    }

    public static ExecutorService getAutoFinishExecutors() {
        return autoFinishExecutors;
    }

    public static ExecutorService getNoticeWorkerExecutors() {
        return noticeWorkerExecutors;
    }
}
